package org.tarena.dang.action.order;

import java.util.List;

import org.tarena.dang.action.BaseAction;
import org.tarena.dang.entity.CartItem;
import org.tarena.dang.service.CartFactory;
import org.tarena.dang.service.CartService;

public class OrderListAction extends BaseAction {
	private List<CartItem> buyList;
	private double count;
	
	public String  execute(){
		CartService cartService = CartFactory.getCart(session);
		buyList = cartService.getBuyList();
		count = cartService.count();
		return "success";
	}
	public List<CartItem> getBuyList() {
		return buyList;
	}

	public void setBuyList(List<CartItem> buyList) {
		this.buyList = buyList;
	}
	public double getCount() {
		return count;
	}
	public void setCount(double count) {
		this.count = count;
	}
}
